<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>

    alert(m().bar)
    function f(){
        return {
            bar:"tt"
        }
    }

    function m(){
        return {
            bar: f().bar
        }
    }
</script>
</html>